<template>
  <view class="content">
    <image mode="aspectFill" class="logo" src="/static/logo.png" />
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
    <view>{{ counterStore.count }}</view>
    <button
     
      @click="counterStore.increment()"
    >
      增加
    </button>

    <button @click="test" > 请求</button>>
    
    <uni-card title="基础卡片" sub-title="副标题" extra="额外信息"
      thumbnail="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png">
      <text>这是一个带头像和双标题的基础卡片，此示例展示了一个完整的卡片。</text>
    </uni-card>

    <uni-section title="修改字体大小" subTitle="设置 font-size 属性设置组件大小" type="line" padding>
			<uni-countdown :font-size="30" :day="1" :hour="2" :minute="30" :second="0" />
		</uni-section>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { useCounterStore } from '@/stores/counter'
import { http } from '@/api/http';
const counterStore = useCounterStore()
const title = ref('Hello world11')

const test = async () => {
  let res = await http<string>({
    url: 'fasdf',
    method: 'post',
    data: {a:1,b:2}
  })
  console.log(res.result)
}
</script>

<style> 
</style>
